from flask import Flask
app = Flask(__name__)

@app.route('/hello')  # 定义接口路径
def hello():
    return "Hello, World!"  # 返回文本

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8000)  # 启动服务
